<template>
	<el-card class="main2">
		<div slot="header">
			<span>成绩管理/班级成绩</span>
		</div>
		<el-table :data="data" border size="size">
			<el-table-column v-for="(col,index) in cols" :key="index" :prop="col" :label="col"></el-table-column>
		</el-table>
	</el-card>
</template>

<script>
	export default {
		data() {
			return {
				cols:[],
				data:[]
			}
		},
		mounted() {
			this.$ajax.post('grade/myClassGrade',{}).then(res=>{
				var result=res.data;
				this.cols=result.cols;
				this.data=result.tableData;
			})
		}
	}
</script>

<style scoped>
</style>
